package edu.zut.hb.software.student.service.impl;


import java.util.ArrayList;
import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.hb.software.base.service.impl.GenericTreeManagerImpl;
import edu.zut.hb.software.student.dao.StudentGroupDao;
import edu.zut.hb.software.student.domain.StudentGroup;
import edu.zut.hb.software.student.service.StudentGroupService;

@Service
@Transactional
public class StudentGroupServiceImpl extends GenericTreeManagerImpl<StudentGroup, Long>
        implements StudentGroupService {


    StudentGroupDao studentGroupDao;

    @Autowired
    public void StudentGroupDao(StudentGroupDao studentGroupDao) {
        this.studentGroupDao = studentGroupDao;
        this.treeDao=studentGroupDao;
        this.dao=treeDao;
    }

    @Override
        public List list() {
            List list = new ArrayList();
            for (int i = 0; i < 100; i++) {
            	StudentGroup sg = new StudentGroup();
            	sg.setName("名称"+i);
            	sg.setAddress("地址"+i);
            	sg.setPhone("号码"+i);
                list.add(sg);
            }
            return list;

        }




}
